package com.itmuch.box.domain.comment.entity;
// Generated 2016-1-6 16:55:38 by Hibernate Tools 4.3.1.Final

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.itmuch.box.core.base.BaseEntity;

/**
 * Comment generated by hbm2java
 */
@Entity
@Table(name = "f_comment", catalog = "yayi_spring_boot")
@DynamicInsert
@DynamicUpdate
public class Comment extends BaseEntity {

    private Integer id;
    private Integer parentId;
    private Integer contentId;
    private Integer memberId;
    private Integer toMemberId;
    private Date replyTime;
    private Integer ip;
    private String txt;
    private short ups;
    private short downs;
    private Byte recomendFlag;
    private Byte checkFlag;
    private Integer createId;
    private Integer updateId;
    private Date createTime;
    private Date updateTime;

    public Comment() {
    }

    public Comment(Integer parentId, Integer contentId, Integer memberId, Integer toMemberId, Date replyTime, Integer ip, String txt, short ups,
            short downs, Byte recomendFlag, Byte checkFlag, Integer createId, Integer updateId, Date createTime, Date updateTime) {
        this.parentId = parentId;
        this.contentId = contentId;
        this.memberId = memberId;
        this.toMemberId = toMemberId;
        this.replyTime = replyTime;
        this.ip = ip;
        this.txt = txt;
        this.ups = ups;
        this.downs = downs;
        this.recomendFlag = recomendFlag;
        this.checkFlag = checkFlag;
        this.createId = createId;
        this.updateId = updateId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    @Id
    @GeneratedValue(strategy = IDENTITY)

    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "parent_id", nullable = false)
    public Integer getParentId() {
        return this.parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Column(name = "content_id", nullable = false)
    public Integer getContentId() {
        return this.contentId;
    }

    public void setContentId(Integer contentId) {
        this.contentId = contentId;
    }

    @Column(name = "member_id", nullable = false)
    public Integer getMemberId() {
        return this.memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    @Column(name = "to_member_id", nullable = false)
    public Integer getToMemberId() {
        return this.toMemberId;
    }

    public void setToMemberId(Integer toMemberId) {
        this.toMemberId = toMemberId;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "reply_time", nullable = false, length = 0)
    public Date getReplyTime() {
        return this.replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    @Column(name = "ip", nullable = false)
    public Integer getIp() {
        return this.ip;
    }

    public void setIp(Integer ip) {
        this.ip = ip;
    }

    @Column(name = "txt", nullable = false)
    public String getTxt() {
        return this.txt;
    }

    public void setTxt(String txt) {
        this.txt = txt;
    }

    @Column(name = "ups", nullable = false)
    public short getUps() {
        return this.ups;
    }

    public void setUps(short ups) {
        this.ups = ups;
    }

    @Column(name = "downs", nullable = false)
    public short getDowns() {
        return this.downs;
    }

    public void setDowns(short downs) {
        this.downs = downs;
    }

    @Column(name = "recomend_flag", nullable = false)
    public Byte getRecomendFlag() {
        return this.recomendFlag;
    }

    public void setRecomendFlag(Byte recomendFlag) {
        this.recomendFlag = recomendFlag;
    }

    @Column(name = "check_flag", nullable = false)
    public Byte getCheckFlag() {
        return this.checkFlag;
    }

    public void setCheckFlag(Byte checkFlag) {
        this.checkFlag = checkFlag;
    }

    @Override
    @Column(name = "create_id", nullable = false)
    public Integer getCreateId() {
        return this.createId;
    }

    @Override
    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    @Override
    @Column(name = "update_id", nullable = false)
    public Integer getUpdateId() {
        return this.updateId;
    }

    @Override
    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", nullable = false, length = 0)
    public Date getCreateTime() {
        return this.createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time", nullable = false, length = 0)
    public Date getUpdateTime() {
        return this.updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
